#Target
TgtFile = ztconfig

SrcFile0 = ztconf

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\ZTCONFIG

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  

# Compiler Options
MkIncludes = -I $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) -I $(VVXEMV_INCLUDES) 
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
	@$(SDS)\cmd\liber -cy $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).c \
		C:\softpay\ver30\SOURCE\INCLUDE\IIT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\crt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PIT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\file.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\spamsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ict.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ztconf.h\
		C:\softpay\ver30\SOURCE\INCLUDE\udt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\sct.h\
		C:\softpay\ver30\SOURCE\INCLUDE\MHT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CPT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\passwd.h\
		C:\softpay\ver30\SOURCE\INCLUDE\cfg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pwrfids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\PCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\LCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CST.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pfr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\BDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\sdt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\MIT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\DCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\AAT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dpt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h 
	@echo COMPILING...$(SrcFile0).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).c | fmterr.exe

